<?php
/*
Template name: Links
*/
get_header();
?>
<div id="content">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

<div class="post page linkspage" id="post-<?php the_ID(); ?>">

	<h2 id="pagetitle" style="display:none;"><?php the_title(); ?></h2>

	<div class="postcontent">
		<?php the_content(); ?>
		<?php wp_list_bookmarks('category_before=<div id="blogroll-list">&category_after=</div>&title_before=<h3 class="blogroll-title">&title_after=</h3>&category_orderby=name&category_order=desc&orderby=id&order=asc');?>
	</div>
</div>
<?php
	endwhile;
	else :
		echo walleve_404_message(); 
	endif;
?>
	<?php if(!(is_page() || is_single()) ){ ?>
		<div id="pagenav">
			<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
		</div>
	<?php } ?>
</div>
<?php walleve_sidebar(); ?>
<?php get_footer();?>